<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改获奖')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-prize-edit" th:object="${doc}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">获奖成果名称：</label>
                <div class="col-sm-8">
                    <input name="awardName" th:field="*{awardName}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">证书编号：</label>
                <div class="col-sm-8">
                    <input name="certificateNo" th:field="*{certificateNo}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">获奖时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="prizeTime" th:value="${#dates.format(doc.prizeTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" disabled>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">授奖单位：</label>
                <div class="col-sm-8">
                    <input name="awardDept" th:field="*{awardDept}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">奖项名称：</label>
                <div class="col-sm-8">
                    <input name="priveName" th:field="*{priveName}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">奖项级别：</label>
                <div class="col-sm-8">
                    <select name="prizeLevel" class="form-control m-b" th:with="type=${@dict.getType('prize_level')}" disabled>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{prizeLevel}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">奖项类别：</label>
                <div class="col-sm-8">
                    <select name="prizeType" class="form-control m-b" th:with="type=${@dict.getType('prize_type')}" disabled>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{prizeType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主要完成单位：</label>
                <div class="col-sm-8">
                    <input name="mainCompletedDept" th:field="*{mainCompletedDept}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">我院排序：</label>
                <div class="col-sm-8">
                    <input name="ownSort" th:field="*{ownSort}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">主要完成人：</label>
                <div class="col-sm-8">
                    <textarea name="mainCompletedMan" class="form-control" disabled>[[*{mainCompletedMan}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">申报时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="reportTime" th:value="${#dates.format(doc.reportTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" disabled>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">单位：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <input name="writtingsName" th:field="*{reportUnit}" class="form-control" type="text" required disabled>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">科室：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <input name="writtingsName" th:field="*{department}" class="form-control" type="text" required disabled>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">附件：</label>
                <div class="col-sm-8">
                    <ul class="list-group list-group-striped">
                        <li th:each="dict : ${appendices}" class="list-group-item">
                            <a  th:href="${dict.appendixLocation}"   target="_blank"><i class="fa fa-edit"></i>[[${dict.appendixName}]]</a>
                        </li>
                    </ul>
                </div>
            </div>
        </form>
    </div>

    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/approval";

    </script>
</body>
</html>